#ifndef __LOGIC_H
#define __LOGIC_H
#include <iostream>
#include <client/dbclient.h>
#define OBJECTCOLL "test.objects"
#define CVECOLL "test.cve"

class Comp
{
    public:
    bool compare(std::string,std::string,std::string);
    bool compare(int,std::string,int);
    bool compare(double,std::string ,double);
};
bool isValidCVE(mongo::DBClientConnection *,std::string,std::string);
bool hasCount(mongo::DBClientConnection *,std::string,int, mongo::BSONObj &);
std::string getLogType(mongo::BSONObj &);
std::string getTimestamp(mongo::BSONObj &);
#endif
